package com.study;

import java.util.TimeZone;

import javax.annotation.PostConstruct;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.study.*"})
@SpringBootApplication
@ServletComponentScan
//@ServletComponentScan(value= "com.study.util.JTQListener")
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	
	
	//设置时区 相差8小时
			@PostConstruct
			void started() {
				TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
			}

}
